package com.example.mqttdemo.entity.pojo;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 设备控制记录表
 * @TableName device_commands
 */
@TableName(value ="device_commands")
@Data
public class DeviceCommands implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备ID
     */
    @TableField(value = "device_id")
    private String deviceId;

    /**
     * 指令类型
     */
    @TableField(value = "command_type")
    private String commandType;

    /**
     * 指令数据
     */
    @TableField(value = "command_data")
    private Object commandData;

    /**
     * 执行状态
     */
    @TableField(value = "status")
    private Object status;

    /**
     * 设备响应数据
     */
    @TableField(value = "response_data")
    private Object responseData;

    /**
     * 
     */
    @TableField(value = "created_time")
    private LocalDateTime createdTime;

    /**
     * 发送时间
     */
    @TableField(value = "sent_time")
    private LocalDateTime sentTime;

    /**
     * 执行时间
     */
    @TableField(value = "executed_time")
    private LocalDateTime executedTime;

    /**
     * 0未删 1已删
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}